{extend name="personal/index" /}

{block name="center"}

    <link href="static/baiduedit/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="static/baiduedit/third-party/jquery.min.js"></script>
    <script type="text/javascript" src="static/baiduedit/third-party/template.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="static/baiduedit/umeditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="static/baiduedit/umeditor.min.js"></script>
    <script type="text/javascript" src="static/baiduedit/lang/zh-cn/zh-cn.js"></script>


      <div class="plc_main">
        <!--右侧开始-->
        <div class="main_cont">
          <form id="eform" name="eform" action="indexPersonalRizhiDoeditrizhi" method="post" enctype="multipart/form-data">
            <!--新增日志详细内容开始-->
            <div class="path_title">
              <span class="blog_title">
                发表宠日记
              </span>
              <a class="return" href="indexPersonalRizhiIndex" title="返回日志首页&gt;&gt;">
                返回日志首页&gt;&gt;
              </a>
            </div>
            <div class="write_blog">
              <ul>
                <li>
                  <input name="title" type="text" class="input_txt" id="title" value="{$rizhiList.rz_title}">
                </li>

                <li>
                  <script type="text/plain" id="myEditor" style="width:740px;height:280px;">{$rizhiList.rz_content}</script>
                </li>

                <li>
                  关联相册：
                  <select name="album_id" id="album_id">
                    <option value="1">
                      默认相册
                    </option>
                    <option value="2">
                      非默认相册
                    </option>
                  </select>
                  <span class="tips">
                    选择关联相册后，日记内图片自动归入该相册，方便记录爱宠生活
                  </span>
                </li>
                <li class="btn">
                  <button type="submit" class="pub_btn">发布</button>
                  <a href="indexPersonalRizhiIndex" class="c_pub_btn">取消</a>
                </li>
              </ul>
            </div>
            <input name="id" type="hidden" value="{$rizhiList.id}">
            <!--修改日志详细内容结束-->
          </form>
        </div>
        <!--右侧结束-->
      </div>



<script type="text/javascript">
    //实例化编辑器
    var um = UM.getEditor('myEditor');
    um.addListener('blur',function(){
        $('#focush2').html('编辑器失去焦点了')
    });
    um.addListener('focus',function(){
        $('#focush2').html('')
    });
</script>

{/block}
